package com.kdd.campus.sh.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:shenkunlin
 * @Description:ShAddress构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "ShAddress",value = "ShAddress")
@Table(name="sh_address")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ShAddress implements Serializable{

	@ApiModelProperty(value = "")
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
	private Integer id;//

	@ApiModelProperty(value = "")
    @Column(name = "userId")
	private Long userId;//

	@ApiModelProperty(value = "")
	@Column(name = "nickname")
	private String nickname;//用户昵称

	@ApiModelProperty(value = "")
	@Column(name = "phone")
	private String phone;//用户电话

	@ApiModelProperty(value = "大学名称")
    @Column(name = "university")
	private String university;//大学名称

	@ApiModelProperty(value = "校区")
    @Column(name = "campus")
	private String campus;//校区

	@ApiModelProperty(value = "宿舍楼")
    @Column(name = "dormitory")
	private String dormitory;//宿舍楼

	@ApiModelProperty(value = "寝室号")
    @Column(name = "room")
	private String room;//寝室号

	@ApiModelProperty(value = "省")
	@Column(name = "province")
	private String province;//省

	@ApiModelProperty(value = "市")
	@Column(name = "city")
	private String city;//市

	@ApiModelProperty(value = "区")
	@Column(name = "area")
	private String area;//详细地址

	@ApiModelProperty(value = "备注")
    @Column(name = "comment")
	private String comment;//备注

	@ApiModelProperty(value = "是否为默认地址")
    @Column(name = "is_default")
	private Integer isDefault;//是否为默认地址

	@ApiModelProperty(value = "")
    @Column(name = "create_time")
	private Date createTime;//


	
}
